package cn.rkylin.oms.aftersale.sysreturn.vo;

import cn.rkylin.oms.aftersale.sysreturn.domain.SysReturnSku;

/**
 * 类名:SysReturnSkuVO <br/>
 */
public class SysReturnSkuVO extends SysReturnSku {

    private static final long serialVersionUID = 3279343367184599087L;
    
    /**
     * inventoryType:库存类型：zp 正品；cp 次品.
     */
    private String inventoryType;

    public String getInventoryType() {
        return inventoryType;
    }

    public void setInventoryType(String inventoryType) {
        this.inventoryType = inventoryType;
    }

    /**
     * sysReturnVO:退款单明细相关的退款单信息.
     */
    private SysReturnVO sysReturnVO;

    public SysReturnVO getSysReturnVO() {
        return sysReturnVO;
    }

    public void setSysReturnVO(SysReturnVO sysReturnVO) {
        this.sysReturnVO = sysReturnVO;
    }

    /**
     * sku新增，修改动作标记
     */
    private String action;
    ;
    /**
     * factMoney:实际金额.
     */
    private String factMoney;
    /**
     * divideOrderFee:分单金额.
     */
    private String divideOrderFee;
    /**
     * 商品来源
     */
    private String skuSource;
    /**
     * 复选框扩展
     */
    private String chk;
    /**
     * 退入数量
     */
    private Integer returnQty;

    /**
     * 是否异常
     */
    private String isExcept;

    /**
     * 异常原因
     */
    private String exceptReason;

    // 异常标识图标
    private static final String ABNORMAL_FLAG = "<span class='badge badge-red'> </span>";

    /**
     * 异常标识
     */
    private String identification;


    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getFactMoney() {
        return factMoney;
    }

    public void setFactMoney(String factMoney) {
        this.factMoney = factMoney;
    }

    public String getDivideOrderFee() {
        return divideOrderFee;
    }

    public void setDivideOrderFee(String divideOrderFee) {
        this.divideOrderFee = divideOrderFee;
    }

    public String getSkuSource() {
        return skuSource;
    }

    public void setSkuSource(String skuSource) {
        this.skuSource = skuSource;
    }

    public String getChk() {
        return chk;
    }

    public void setChk(String chk) {
        this.chk = chk;
    }

    public Integer getReturnQty() {
        return returnQty;
    }

    public void setReturnQty(Integer returnQty) {
        this.returnQty = returnQty;
    }

    public String getIsExcept() {
        return isExcept;
    }

    public void setIsExcept(String isExcept) {
        this.isExcept = isExcept;
    }

    public String getExceptReason() {
        return exceptReason;
    }

    public void setExceptReason(String exceptReason) {
        this.exceptReason = exceptReason;
    }

    public String getIdentification() {
        if ("y".equals(this.getIsExcept())) {
            identification = ABNORMAL_FLAG;
        } else {
            identification = "";
        }
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }


}

